import { createApp } from "vue";
import { createPinia } from "pinia";
import App from '@/App.vue'//root根节点
import router from '@/router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import perm from '@/directives/perm.js'
import ZHCN from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
let pinia = createPinia()
let app = createApp(App)
app.use(router)
app.use(pinia)
app.use(ElementPlus,{locale:ZHCN})
app.directive('perm',perm)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount("#app")
